/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-15
 * Time: 15:12
 */
public class Demo03 {
    public static void main(String[] args) {
        String s1 = "1234";
        //String.valueOf() 数字转化成字符串
        int a = 100;
        String s2 = String.valueOf(a);
        System.out.println(s2);
        //Integer.valueOf() 数字转换成字符串
         a = Integer.valueOf(s1);
        System.out.println(a+1);
        //Integer.parseInt(s1) 数字转换成字符串
        a = Integer.parseInt(s1);
        System.out.println(a+1);
    }
}
